<?php

namespace Infrastructure;

class SessionStorage {
    
    public function store($name, $value) {
        $_SESSION[$name] = $value;
    }
    
    public function get($name) {
        return isset($_SESSION[$name]) ? $_SESSION[$name] : null;
    }
    
    public function endSession() {
        session_unset();
    }
}

